package com.chinaunicom.behavior.state;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/8/22 14:28
 * Description:
 */
public class Document {
    
    public State state;

    public Document() {
//        this.state = state;
    }
    
    public void initState(State state){
        this.state = state;
    }

    public void render(){
        state.render();
    }
    
    public void publish(){
        state.publish();
    }

    public void review(){
        state.review();
    }
    
    public void changeState(State state){
        this.state = state;
    }
}
